package sakila.commonprocess;

public class ProcessResult
{

	/** The is completed. */
	private boolean isCompleted;

	/** The result message. */
	private String msg;

	/**
	 * Instantiates a new process result.
	 */
	public ProcessResult(final boolean isCompleted, final String msg)
	{
		this.isCompleted = isCompleted;
		this.msg = msg;
	}

	public String getResultMessage()
	{
		return this.msg;
	}

	/**
	 * Checks if process is completed.
	 * 
	 * @return true, if is completed
	 */
	public boolean isCompleted()
	{
		return this.isCompleted;
	}
}
